import { axios } from '@/utils/request'

export function getCourseList (params) {
  return axios({
    url: '/experiment/course',
    method: 'get',
    params
  })
}

export function getCourseAllList (params) {
  return axios({
    url: '/experiment/course/list',
    method: 'get',
    params
  })
}

export function deleteCourseInfo (params) {
  return axios({
    url: '/experiment/course',
    method: 'delete',
    params
  })
}

export function getCourseInfo (params) {
  return axios({
    url: '/experiment/course/getOne',
    method: 'get',
    params
  })
}

export function createCourseInfo (params) {
  return axios({
    url: '/experiment/course',
    method: 'post',
    params
  })
}

export function updateCourseInfo (params) {
  return axios({
    url: '/experiment/course',
    method: 'put',
    params
  })
}
